package com.lmds.sprindemo1.controller.event;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * User: mgm
 * Date: 2018/1/20
 * Time: 23:40
 */

@Component
public class DemoEventListener implements ApplicationListener<DemoEvent> {
    @Override
    public void onApplicationEvent(DemoEvent demoEvent) {
        System.out.println("got DemoEvent msg:" + demoEvent.getMsg());
    }
}
